/**
 * 快捷导航api
 */
import instance from "@/utils/request";

//快捷导航分页查询
export function GetQuickNavListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/quick/nav/list/page",
        data
    })
}

//新增快捷导航
export function PostQuickNavListApi(data = {}) {
    return instance.request({
        method: "post",
        url: "/quick/nav/add",
        data
    })
}

//删除分页数据
export function DelQuickNavListApi(navigationId) {
    return instance.request({
        method: "DELETE",
        url: `/quick/nav/del/${navigationId}`,
    })
}

//快捷导航是否禁用/状态修改
export function changeQuickNavListApi(navigationId, isRecommend) {
    return instance.request({
        method: "get",
        url: `/quick/nav/status/${navigationId}/${isRecommend}`,
    })
}

//快捷导航编辑回显
export function EditQuickNavListApi(navigationId) {
    return instance.request({
        method: "get",
        url: `/quick/nav/get/${navigationId}`,
    })
}

//快捷导航编辑
export function EditaddQuickNavListApi(data) {
    return instance.request({
        method: "post",
        url: `/quick/nav/edit`,
        data
    })
}